<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>number类型学习</title>
    <script>
        //没有加任何前缀默认十进制
        /* 
            前缀0 ---> 八进制
            前缀0x ---> 十六进制
        */
        var a = 10,
            b = 010,
            c = 0x10;
        console.log('十进制的10---->' + a);
        console.log('八进制的10---->' + b);
        console.log('十六进制的10---->' + c);

        //最大值    1.7976931348623157e+308
        console.log(Number.MAX_VALUE);
        //最小值    5e-324
        console.log(Number.MIN_VALUE);
        //无穷大    Infinity
        console.log(Number.MAX_VALUE * 2);
        //无穷小    -Infinity
        console.log(-Number.MAX_VALUE * 2);
        //非数字    NaN
        console.log('我' - 10);
    </script>

</head>

<body>

</body>

</html>